﻿<%@ Page Language="C#" EnableEventValidation="false" MasterPageFile="~/MasterPage.master"
    AutoEventWireup="true" CodeFile="QCFixedCheckViewbyDT.aspx.cs" Inherits="ProductAssemble_ViewAssemble_QCFixedCheck_QCFixedCheckViewbyDT"
    Title="无标题页" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript" src="../../../js/my97datepicker/WdatePicker.js"></script>

    <div>
        &nbsp; &nbsp; &nbsp; &nbsp;
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="width: 80%; clear: left; float: left;">
                    起始时间：<input type="text" runat="server" id="TextBox1" onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                        ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 终止时间：<input
                        type="text" runat="server" id="TextBox2" onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
                        ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div style="width: 15%; float: left; clear: right;">
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查  询" />
        </div>
        <div style="clear: both">
            <br />
            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true"
                BestFitPage="False" Height="800px" PageToTreeRatio="1001" ReportSourceID="CrystalReportSource1"
                Width="1080px" Visible="False" />
            <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
            </CR:CrystalReportSource>
        </div>
        <div visible="false">
            <%--对GridView加AJAX异步刷新会对分页的返回有影响--%>
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>
                    <br />
                    <div style="float: left; clear: left; width: 100%">
                        <br />
                        <asp:GridView ID="GridView1" runat="server" BackColor="White" Width="100%" BorderColor="White"
                            BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None"
                            AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"
                            PageSize="20">
                            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                            <Columns>
                                <asp:HyperLinkField DataNavigateUrlFields="ProductSN" DataNavigateUrlFormatString="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx?ProductSN={0}"
                                    DataTextField="ProductSN" HeaderText="腔体序列号" NavigateUrl="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx" />
                                <asp:BoundField DataField="RecordTime" HeaderText="记录时间" />
                                <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                                <asp:BoundField DataField="UserID" HeaderText="操作员" />
                                <asp:BoundField DataField="LoginID" HeaderText="登录工号" />
                                <asp:BoundField DataField="FailureName" HeaderText="不良项" />
                                <asp:BoundField DataField="ResponseUser" HeaderText="不良责任人" />
                            </Columns>
                            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                        </asp:GridView>
                        <br />
                    </div>
                    <br />
                    <br />
                    <br />
                    <br />
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
</asp:Content>
